﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business.Abstract;
using DataAccess.AbstractRepository;
using DataAccess.Repository;
using DataAccess.NHibernateHelper;
using Domain.Entity;

namespace Business.Service
{
    public class BookingTypeServiceImpl : IBookingTypeService
    {
        IBookingTypeRepository bookingTypeRepo;
        public BookingTypeServiceImpl()
        {
            bookingTypeRepo = new BookingTypeRepository(FluentNHibernateHelper.GetContext());
        }

        public IList<BookingType> GetAllBookingType()
        {
            return bookingTypeRepo.List().ToList();
        }
    }
}
